﻿@model INSE6260.OnlineBanking.Model.ClientCard.SecurityQuestionInfo
@{
    ViewBag.Title = "Change Security Question";
}
<!DOCTYPE html>
<html>
<head>
    <title>Chnage Security Question</title>
</head>
<body>
    <div>
        @using (Html.BeginForm())
        {
            <fieldset>
                <legend>Account Information</legend>
                <div class="editor-label">
                    @Html.LabelFor(m => m.Question1)
                </div>
                <div class="editor-field">
                    @Html.DropDownListFor(model => model.Question1, (SelectList)ViewData["Question"])
                    @Html.ValidationMessageFor(m => m.Question1)
                </div>
                <div class="editor-label">
                    @Html.LabelFor(m => m.Answer1)
                </div>
                <div class="editor-field">
                    @Html.EditorFor(m => m.Answer1)
                    @Html.ValidationMessageFor(m => m.Answer1)
                </div>
                <div class="editor-label">
                    @Html.LabelFor(m => m.Question2)
                </div>
                <div class="editor-field">
                    @Html.DropDownListFor(model => model.Question2, (SelectList)ViewData["Question"])
                    @Html.ValidationMessageFor(m => m.Question2)
                </div>
                <div class="editor-label">
                    @Html.LabelFor(m => m.Answer2)
                </div>
                <div class="editor-field">
                    @Html.EditorFor(m => m.Answer2)
                    @Html.ValidationMessageFor(m => m.Answer2)
                </div>
                <div class="editor-label">
                    @Html.LabelFor(m => m.Question3)
                </div>
                <div class="editor-field">
                    @Html.DropDownListFor(model => model.Question3, (SelectList)ViewData["Question"])
                    @Html.ValidationMessageFor(m => m.Question3)
                </div>
                <div class="editor-label">
                    @Html.LabelFor(m => m.Answer3)
                </div>
                <div class="editor-field">
                    @Html.EditorFor(m => m.Answer3)
                    @Html.ValidationMessageFor(m => m.Answer3)
                </div>
                <p>
                    <input type="submit" value="Change" />
                     @Html.ActionLink("Cancel", "Index", "Home",null, new { @class = "khbtn" })
                </p>
                <div style="color: green">
                    @if (!String.IsNullOrEmpty(@ViewBag.ValidMessage))
                    {
                        @ViewBag.ValidMessage
                    }
                </div>
                <div style="color: red">
                    @if (!String.IsNullOrEmpty(@ViewBag.InvalidMessage))
                    {
                        @ViewBag.InvalidMessage
                    }
                </div>
            </fieldset> 
        }
    </div>
</body>
</html>
